#include "vectorfunctions.h"
#include <iostream>




int main()
{
	int mat[10][10];
	int prin[100], sec[100];
	int i, j, n, row, col, aux;
	cout<<"Number of rows ";
	cin>>row;
	cout<<"Number of colons ";
	cin>>col;
	for (i=0; i<row; i++)
		for (j=0; j<col; j++){
			cout<<"m["<<i<<"]["<<j<<"]= ";
			cin>>mat[i][j];	
		}
	for (i=1; i<row; ++i)
		for (j=0; j<col; ++j){
			aux=mat[i][j];
			n=i-1;
			while(aux>mat[n][j] && n>=0){
				mat[n+1][j]=mat[n][j];
				--n;
			}
			mat[n+1][j]=aux;
		}



	for (i=0; i<row; i++){
		for (j=0; j<col; j++)
			cout<<mat[i][j]<<" ";
		cout<<endl;	
		}


	
return 0;
}
